package cn.blossoming.service.base.utils;

import com.qiniu.util.Auth;

public class OssUtils {
    private static final String ACCESS_KEY = "F5TEAP-oLxGzY8khhiuiqQAhI4cz3gSw2pD2l94z";
    private static final String SECRET_KEY = "7zIzRpnAZbjitg4_AJMTlyu58hagXcC1qw7dhSr9";
    private static final String BLOSSON_BUCKET = "blosson";
    private static final Auth AUTH = Auth.create(ACCESS_KEY, SECRET_KEY);

    public static String getUploadToken(String key) {
        return AUTH.uploadToken(BLOSSON_BUCKET, key);
    }

    public static Auth getAuth() {
        return AUTH;
    }
}
